Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Log Class / TraceInformation Method / TraceInformation(Exception,String,Object[]) Method
An Exception object to attach to this log message.
The string message to use, or a format string followed by corresponding args.
A variable number of arguments to insert into the formatted message string.

In This Topic
    TraceInformation(Exception,String,Object[]) Method
    In This Topic
    Write an Information trace message directly to the Loupe log, with an attached Exception.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub TraceInformation( _
       ByVal exception As Exception, _
       ByVal format As String, _
       ByVal ParamArray args() As Object _
    ) 
    public static void TraceInformation( 
       Exception exception,
       string format,
       params object[] args
    )

    Parameters

    exception
    An Exception object to attach to this log message.
    format
    The string message to use, or a format string followed by corresponding args.
    args
    A variable number of arguments to insert into the formatted message string.
    Remarks

    Information about the current thread and calling method is automatically captured. The log message will be attributed to the immediate caller of this method. Wrapper implementations should instead use the Log.Write(...) overloads in order to attribute the log message to their own outer callers.

    The message will not be sent through System.Diagnostics.Trace and will not be seen by other trace listeners.

    This overload also allows an Exception object to be attached to the log message. An Exception-typed null (e.g. from a variable of an Exception type) is allowed for the exception argument, but calls which do not have a possible Exception to attach should use an overload without an exception argument rather than pass a direct value of null, to avoid compiler ambiguity over the type of a simple null.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also